package wt.hpad.model.adapter;

import android.app.Activity;
import android.content.Context;
import android.view.ViewGroup;

import java.util.List;

import wt.hpad.R;
import wt.hpad.base.BaseHolder;
import wt.hpad.base.BaseRvAdapter;
import wt.hpad.model.bean.Dish;
import wt.hpad.model.holder.DishOrderHolder;

/**
 * Created by wt on 1.3.
 */

public class DishOrderAdapter extends BaseRvAdapter<Dish> {
    /**
     * 用构造函数给数据源赋值
     *
     * @param dataSet
     * @param activity
     */
    public DishOrderAdapter(List<Dish> dataSet, Activity activity) {
        super(dataSet, activity);
    }

    @Override
    protected BaseHolder createViewHolder(Context context, ViewGroup parent, int viewType) {
        return new DishOrderHolder(context, parent, this, R.layout.item_dish_order);
    }
}
